lst = ['aa ', 'bb', 'cc', 'aa']
result = []

for item in lst:
    if not item.strip() in result:
        result.append(item.strip())

print(result)
